package Abstract_Factory_Pattern.OS;


// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        //以linux举例子
        OS_Factory factory;
        Button button;
        Text text;
        factory=(OS_Factory) XMLUtil.getBean();
        button=factory.createButton();
        text=factory.createText();
        button.play();
        text.play();
//        factory =new LinuxFactory();
//        button=factory.createButton();
//        text=factory.createText();
//        button.play();
//        text.play();
    }
}
